package com.xsh.sinsynth;

import android.content.Context;
import android.graphics.Canvas;
import android.util.AttributeSet;
import android.view.View;
import android.widget.Button;
import android.widget.LinearLayout;
import android.widget.SeekBar;

public class SinSynthView extends LinearLayout
{
    private Button playButton;
    private Button stopButton;
    private SeekBar volBar;
    public SinSynthView(Context context) {
        super(context);
       // init(context);
    }
    public SinSynthView(Context context, AttributeSet attrs)
    {
        super(context, attrs, 0); // 主动调用三参构造
    }
    public SinSynthView(Context context,AttributeSet attrs,int defStyleAttr)
    {
        super(context,attrs,defStyleAttr);
    }
    @Override
    protected void onDraw(Canvas canvas)
    {

    }
    private void init(Context ctx)
    {
        //volBar
        volBar.setOnSeekBarChangeListener(new SeekBar.OnSeekBarChangeListener()
        {
            @Override
            public void onProgressChanged(SeekBar seekBar, int i, boolean b)
            {

            }

            @Override
            public void onStartTrackingTouch(SeekBar seekBar) { }

            @Override
            public void onStopTrackingTouch(SeekBar seekBar) { }
        });
    }
}
